
package com.pie4cloud.pie.job.biz.gather.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.pie4cloud.pie.job.api.entity.ConfigGather;
import com.pie4cloud.pie.job.api.vo.ConfigGatherVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 
 *
 * @author feilei
 * @date 2022-01-10 00:54:34
 */
@Mapper
public interface ConfigGatherMapper extends BaseMapper<ConfigGather> {

	@Select("select gather.*,ftp.ftp_name from t_config_gather gather left join t_config_ftp ftp on  gather.gather_ftp_id = ftp.ftp_id")
	IPage<ConfigGatherVO> selectConfigPage(@Param(Constants.WRAPPER) QueryWrapper<ConfigGatherVO> queryWrapper, IPage<ConfigGatherVO> ipage);
}
